<? 

class helpController extends inabuurt_controller_action{

	public function indexAction(){
		require_once('./application/models/berichtModel.php');
		$this -> view -> setTpl('help.php');
		$this -> view -> addStyle(view::PATH_TO_STYLE.'profiel.css');
		
		
		
		if($this -> request -> getParam(1) != NULL){
		
			$bericht = new item_bericht($this -> conn);
			$bericht -> id = $this -> request -> getParam(1);
			$bericht -> fillHelp();
			$crumbs = $this -> view -> breadcrumb;
			
			$crumbs[] = array($bericht -> title, '');
			
			$this -> view -> breadcrumb = $crumbs;
			
			$this -> view -> helpBericht = $bericht; 
	
		}else{
		
		
			$model = berichtModel::getInstance($this -> conn);
		
		$this -> view -> help = $model -> getHelpBerichten();
		}
		
		$this -> updateTitle();
		$this -> view -> render();
		
	}
	


}



?>